package com.yatang.yiliao.app.utils;



import com.yatang.yiliao.app.model.User;
import io.rong.imlib.RongIMClient.UserInfo;

import java.util.ArrayList;
import java.util.List;

public class MyUtils {

	public static List<UserInfo> fortmatUserToUserInfo(List<User> uList){
		List<UserInfo> infoList = new ArrayList<UserInfo>();
		
		for(User u : uList){
			infoList.add(new UserInfo(u.getUserId(), u.getUsername(), "http://rongcloud-web.qiniudn.com/docs_demo_rongcloud_logo.png"));
		}
		return infoList;
	}
}
